import { goto } from '$app/navigation';
import { seletedRoute } from '$lib/stores/globalControl.svelte.js';

// 修改changePath函数
export function changePath(route) {
    seletedRoute.set(route);
    goto(route); //跳转
}